Tuesday, January 24, 2017

Linux Interview Question - Part 6

1. The dmesg command
kernel log messages

2. The command “mknod myfifo b 4 16”
Will create a block device if user is root

3. Which command is used to set terminal IO characteristic?
stty

4. Which command is used to record a user login session in a file?
script

5. Which command is used to display the operating system name
uname

6. Which command is used to display the unix version
uname -r

7. Which command is used to print a file
ipr

8. Using which command you find resource limits to the session?
ulimit

9. Which option of ls command used to view file inode number
–i
df -i

10. find / -name ‘*’ will
List all files and directories recursively starting from /

11.Solaris is the name of a flavor of UNIX from
Sun Microsystems

12. Which of the following is “NOT” a UNIX variant ?
AS400

13.The system calls in UNIX is written using which language
C

14.Which of the following enables multi-tasking in UNIX?
Time Sharing

15.Which of the following is considered as the super daemon in Unix?
init

16.Unix is which kind of Operating System?
a) Multi User
b) Multi Processes
c) Multi Tasking

17.Lp0 device file is used to access
Printer

18.Syntax of any Unix command is
command [options] [arguments]

19. Which of these is not a Unix Flavor?
a) MAC

Unix Flavor
b)BSD
c) AIX
d) IRIX

20. Configuration file (permanent)

To make the setting permanent, add the following line to /etc/vimrc or ~/.vimrc using your favorite text editor
set number

Vim will read the configuration file every time it's started, and will display the line numbers.
21. Which among the following is used to write small programs to control Unix functionalities?
C Language

22.What control character signals the end of the input file?
ctrl + d

23.How do you get help about the command “cp”?
man cp

24. To increase the response time and throughput, the kernel minimizes the frequency of disk access by keeping a pool of internal data buffer called
Buffer cache

25.At start of process execution, STDOUT & STDERR
Point to current terminal device

26.wtmp and utmp files contain:
User login-logout log

27. Which is the core of the operating system?
Kernel

28.Which among the following interacts directly with system hardware?
Kernel

29.Applications communicate with kernel by using:
System Calls

30.Which command is used to display the octal value of the text
od

31.Which command is used to view compressed text file contents
zcat

32.Which command changes a file’s group owner
chgrp

33.Which command is used to extract intermediate result in a pipeline
tee

34.Which command is used to extract a column from a text file
cut

35.Which command is used to display disk consumption of a specific directory
du

36.Which command creates an empty file if file does not exist?
touch

37.Which command is used to perform backup in unix?
cpio

38.Which option of rm command is used to remove a directory with all its subdirectories
-r

39.Which command is used to identify file type?
File

40.Command used to determine the path of an executable file is
which

41.Command used to count number of character in a file is
wc

42.Which of these commands could you use to show one page of output at a time?
less

43.Which commands will give you information about how much disk space each file in the current directory uses?
du

44.Which command is used to display all the files including hidden files in your current and its subdirectories ?
ls –aR

45.Which of the following commands can be used to copy files across systems?
ftp

46.pwd command displays.
present working directory

47.Which of the following commands can be used to change default permissions for files and directories at the time of creation
Umask

48.Which tar command option is used to list the files in a tape archive format?
tvf

49.Which of the following commands will allow the user to search contents of a file for a particular pattern
grep


No comments:

Post a Comment